package demo05;

public class TestInsurance {
    public static void main(String[] args) {
        CarInsurance carInsurance = new CarInsurance(200000, 1);
        System.out.println("车险保费: " + carInsurance.a());
        HomeInsurance homeInsurance = new HomeInsurance(3000000, 120);
        System.out.println("家庭基本险保费: " + homeInsurance.a());
    }
}
